package com.wlps.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wlps.entity.Client;
import com.wlps.entity.Commodity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Accessors(chain = true)
@Data
@EqualsAndHashCode(callSuper = false)
@ToString
//@TableName(value="`order`",resultMap = "findCommodity")
public class OrderCommodityVo {

    @TableField(value = "id")
    long id;

    @ApiModelProperty(value = "客户编号,客户表外键")
    private Long clientId;

    @ApiModelProperty(value = "收货人")
    private String receiver;

    @ApiModelProperty(value = "收获地址")
    private String shippingAddress;

    @ApiModelProperty(value = "收货人电话")
    private String consigneephone;

    @ApiModelProperty(value = "投递信息")
    private String deliveryInformation;

//    @ApiModelProperty(value = "商品数量")
//    private Long amountOfGoods;

    @ApiModelProperty(value = "订单总金额")
    private Double theTotalAmountOfOrders;

    @ApiModelProperty(value = "订单类型,普通配送订单（0）、 退订单（1）、 换货单（2）、 退货单（3）， 默认为普通配送订单（0）")
    private Integer orderType;

    @ApiModelProperty(value = "要求完成日期")
    @TableField("finish_date")
    private Date finishDate;

    @ApiModelProperty(value = "订单状态,可分配(0)、缺货（1）、 调度中（2）、已领货（3）、 配送完成（4）、已退货（5）， 默认为可分配（0）")
    private Integer orderStatus;

    @ApiModelProperty(value = "资金信息")
    private String fundingInformation;

    @ApiModelProperty(value = "备注信息")
    private String remark;

    @ApiModelProperty(value="商品资料")
    private List<Commodity> commodityList;
}
